local table_name = "common"
local old_table = IMPORT_D:get_table(table_name)
if not old_table then
    return
end

if not old_table[1] then
    return
end

local new_table = table.copy(old_table[1])
if type(new_table.weaponLuckUpNum) == "string" then
    local tbl = {}
    for _, val in ipairs(string.split(new_table.weaponLuckUpNum, ";")) do
        table.insert(tbl, tonumber(val))
    end
    new_table.weaponLuckUpNum = tbl
end

if type(new_table.TurntableAdd) == "string" then
    local tbl = {}
    for _, val in ipairs(string.split(new_table.TurntableAdd, ";")) do
        table.insert(tbl, tonumber(val))
    end
    new_table.TurntableAdd = tbl
end

if type(new_table.empower) == "string" then
    local tbl = {}
    for _, str in ipairs(string.split(new_table.empower, ";")) do
        local key, val = string.splitv(str, ",")
        tbl[tonumber(key)] = tonumber(val)
    end
    new_table.empower = tbl
end

IMPORT_D:set(table_name, new_table)
